<script src="/statics/js/layer.js"></script>
<!-- 头部开始 -->
<div class="header">
<!--    <div class="header_r" style="margin-top:-8px"><img src="<?=session('loginImg')?>" width="30"></div>-->
    <div class="header_l"><a href="javascript:history.back(-1)"></a></div>
    <div class="header_m">店铺订单</div>
</div>
<!-- 头部结束 -->

<!--全部订单开始-->
<div class="dingdan" style="">
    <div class="dingdan-list" <?=$dataout ? '' : 'style="background-color:#f4f4f4"'?>>
        <?php if($dataout){foreach($dataout AS $vals){?>
        <ul>
            <li class="dingdan-list-li1"><a href="javascript:void(0);"><img src="<?=transUrl($vals['goods_pic'])?>" width="90%" height="90%"></a></li>
            <li class="dingdan-list-li2"><a href="javascript:void(0);"><?=$vals['goods_title']?><p>规格：<?=$vals['goods_attr']?></p></a>
            <p><a href="javascript:void(0);"><?=$vals['biz_cust_realname']?> 海外购旗舰店</a></p>
            </li>
            <li class="dingdan-list-li3">¥ <?=$vals['pay_price']?><p>×<?=$vals['pay_nums']?></p></li>
        </ul>
        <?php $getProfit = M('GoodsProfit')->field('profit*goods_nums AS mprice')->where(array('order_id'=>$vals['order_id'],'biz_cust_id'=>$vals['biz_cust_id']))->find();?>
        <div class="dingdan-list-order"><span>合计：<i>¥ <?=$vals['pay_price']*$vals['pay_nums']?></i> 返利：<i>¥ <?=$getProfit['mprice']?></i></span>共 <?=$vals['pay_nums']?> 件商品</div>
   		<?php }}else{?>
        <center style="margin-top:40px;margin-bottom:40px;background-color:#f4f4f4;width:100%">暂无订单</center>
    	<?php }?>
    </div>
</div>

<!--全部订单结束-->

<!--<div class="fiex nav"> <a class="icon-shouye fiex_on" href="/index/index/sek/<?=$sek?>"><br />-->
  <!--首页</a> <a class="icon-fenlei" href="/cate/main/sek/<?=$sek?>"><br />-->
  <!--分类</a> <a class="icon-gouwu" href="/cart/index/sek/<?=$sek?>"><br />-->
  <!--购物车</a> <a class="icon-geren" href="/index/user/sek/<?=$sek?>"><br />-->
  <!--用户中心</a> </div>-->
<div class="fiex nav">
    <a class="icon-shouye" style="width:50%" href="/index/index/sek/<?=mySpreadSek(session('loginUid'))?>"><br />
        我的店铺</a> <a style="width:50%" class="icon-geren fiex_on" href="/saler/index/sek/<?=mySpreadSek(session('loginUid'))?>"><br />
    用户中心</a> </div>
